package com.jnevision.extra.service;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jnevision.common.CommonQuery;
import com.jnevision.extra.mapper.ExtraMapper;
import com.jnevision.extra.model.Extra;

/**
 * <p>
 * 它得收入 服务实现类
 * </p>
 *
 * @author gavin
 * @since 2019-07-14
 */
@Service
public class ExtraServiceImpl extends ServiceImpl<ExtraMapper, Extra> {

    public IPage<Extra> page(Page<Extra> page, @Param("query") CommonQuery query) {
        return this.baseMapper.page(page, query);
    }

    public String countUserExtra(CommonQuery query) {
        return this.baseMapper.countUserExtra(query);
    }
}
